CreateAntiBruteForceRule
Description
call CreateAntiBruteForceRule to add anti-brute-force cracking rules.
Request Method
POST
Request Path
/apsara/route/Sas/CreateAntiBruteForceRule
Request Parameters Common Parameters
| Name | Location | Type | Required | Sample value | Description |
|---|---|---|---|---|---|
| DefaultRule | BODY | boolean | No | true | whether the added brute-force defense rule is set as the default policy. Valid values include: true: set as default policy false: not set as the default policy |
| ForbiddenTime | BODY | integer | No | 10 | the length of time to prohibit login when adding brute-force defense rules. |
| SourceIp | BODY | string | No | 1.2.3.4 | access the IP address of the source. |
| regionId | BODY | string | Yes | No sample value for this parameter. | region id |
| FailCount | BODY | integer | No | 10 | the threshold for the number of login failures set when adding brute-force defense rules. |
| UuidList.N | BODY | repeatlist | No | uuid-1312133-ssas,uuid-1234-qwer-dss | List of servers where the brute force defense rule takes effect. |
| Span | BODY | integer | No | 15 | the interval between logons set in the brute-force cracking defense rule. |
| version | BODY | string | No | 2016-01-01 | version of api |
| Name | BODY | string | No | brute force cracking defense rules | the name of the brute-force defense rule. |
Return data
| Name | Type | Sample value | Description |
|---|---|---|---|
| RequestId | string | FB3E435F-4116-46F9-A5DE-C338DDA04F47 | the unique identifier generated by alibaba cloud for this request. |
| CreateAntiBruteForceRule | struct | No sample value for this parameter. | the return result of creating an anti-brute force cracking rule. |
| RuleId | long | 6363 | anti-brute force cracking rule ID. |
Example
Successful Response example
{
"RequestId":"FB3E435F-4116-46F9-A5DE-C338DDA04F47",
"CreateAntiBruteForceRule":"",
"RuleId":"6363"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}